package com.masiyi.gitee.config;

import com.masiyi.gitee.template.GiteeTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(value = GiteeProperties.class)
public class GiteeAutoConfiguration {


    @Autowired
    private GiteeProperties giteeProperties;



    @Bean
    public GiteeTemplate getGiteeTemplate() {
        return new GiteeTemplate(giteeProperties);
    }

}
